package com.example.myfirstapp2;

import com.google.code.regexp.Matcher;
import com.google.code.regexp.Pattern;

public class RegexTest {
	public void Test()
	{
		Pattern p = Pattern.compile("(?<name>\\w+)");
		
		Matcher m = p.matcher("%ddd%");
			
		while (m.find()) {
			
			String s = m.group("name");
			
			System.out.println(s);
		}
	}
}
